﻿namespace SimpleTicketBooking.Models
{
    /// <summary>
    /// base model
    /// </summary>
    public class BaseModel
    {
        /// <summary>
        /// for large auto-increment key, type should be long
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// Used for logically deletation
        /// </summary>
        public bool IsDeleted { get; set; } = false;
        public DateTime CreatedTime { get; set; }
        public DateTime UpdatedTime { get; set; }
        /// <summary>
        /// Version filed used for CAS in saving to DB
        /// </summary>
        public int Version { get;set; }
    }
}
